package com.huifan.demo.revenue.servyou;

import com.alibaba.fastjson.JSON;

import java.util.Map;

/**
 * @author: liuchenhui
 * @create: 2019-08-12 09:55
 **/
public class ServyouMain {

    public static void main(String[] args) {
        /**
         * 人员报送服务
         */
        String acceptId = "20190905194638-9305-240392365754286080";
//        String accept = ServyouService.ryxxbs(EmployeeReport.getEmps(1));
//        System.out.println(accept);
//        String ryxxbsztcx = ServyouService.ryxxbsztcx(acceptId);
//        System.out.println(ryxxbsztcx);
//        String ryxxfk = ServyouService.ryxxfk(acceptId);
//        System.out.println(ryxxfk);
//        String ryxxfkztcx = ServyouService.ryxxfkztcx(acceptId);
//        System.out.println(ryxxfkztcx);

        /**
         * 专项服务----基本不需要，咱不实现员工端申报专项信息
         */
//        Object[] rylb = SpecialProject.getRylb(acceptId, true);

//        String ryzxbsID = "20190820213105-9309-234620449022017536";
//        String ryzxbs = ServyouService.ryzxbs(acceptId, rylb);
//        System.out.println(ryzxbs);
//        String ryzxbsztcx = ServyouService.ryzxbsztcx(ryzxbsID);
//        System.out.println(ryzxbsztcx);
//        String ryzxbsfk = ServyouService.ryzxbsfk(ryzxbsID);
//        System.out.println(ryzxbsfk);
//        String ryzxbsfkztcx = ServyouService.ryzxbsfkztcx(ryzxbsID);
//        System.out.println(ryzxbsfkztcx);

        /**
         * 税款计算
         */
//        Map<String, Object> skjsData = TaxationCalculate.getSkjsData(acceptId);
//        System.out.println(JSON.toJSONString(skjsData));

        String skjsId = "20190820214810-9307-234624746304569344";
//        String skjs = ServyouService.skjs(acceptId, skjsData);
//        System.out.println(skjs);
//         0251 在计算所得月份[201907]的税款时，未下载到[201906]的申报信息，请先确保[201906]已经申报，再重新发起所得月份[201907]的税款计算
        /**
         * {"code":"0000","msg":"","data":{"accept_id":"20190820213441-9307-234621353733390336","ykyj":{"jcldhtlb":[],"jmsxfblb":[],"qnycxjjlb":[],"lwbclb":[],"syylbxlb":[],"njlqlb":[],"txqsyflb":[],"zcgzxjlb":[{"zfzjzc":0,"ljjmse":0,"jnzf":0,"znjyzc":0,"mssd":0,"jbylaobxf":500,"jwzf":0,"ybtse":0,"ljsre":10000,"sylrzc":0,"zxfjkchj":0,"jbylbxf":200,"syylbx":0,"ljmssr":0,"bz":"","sl":3,"zykcjze":0,"errorinfo":"","zfgjj":200,"qt":0,"jmse":0,"zxkchj":1800,"sygs":"","syjkbx":0,"ljynssde":0,"sre":10000,"sybxf":0,"jxjyzc":0,"qtckhj":0,"ljzykcdjze":0,"zfdklxzc":0,"ykjse":0,"sskcs":0,"ljykjse":0,"jnts":0,"sdxm":"0100","xm":"郑沙物","zzlx":"居民身份证","ljyingkjse":0,"dbylzc":0,"zzhm":"341722194207063177","nj":0,"ljynse":0,"jcfy":40000,"jwts":0,"status":0},{"zfzjzc":0,"ljjmse":0,"jnzf":0,"znjyzc":0,"mssd":0,"jbylaobxf":500,"jwzf":0,"ybtse":0,"ljsre":10000,"sylrzc":0,"zxfjkchj":0,"jbylbxf":200,"syylbx":0,"ljmssr":0,"bz":"","sl":3,"zykcjze":0,"errorinfo":"","zfgjj":200,"qt":0,"jmse":0,"zxkchj":1800,"sygs":"","syjkbx":0,"ljynssde":0,"sre":10000,"sybxf":0,"jxjyzc":0,"qtckhj":0,"ljzykcdjze":0,"zfdklxzc":0,"ykjse":0,"sskcs":0,"ljykjse":0,"jnts":0,"sdxm":"0100","xm":"龙夷潜","zzlx":"居民身份证","ljyingkjse":0,"dbylzc":0,"zzhm":"653200200604090096","nj":0,"ljynse":0,"jcfy":40000,"jwts":0,"status":0}],"syjkbxlb":[],"gcsdlb":[],"gqjllb":[]}}}
         */
//        String skjscx = ServyouService.skjscx(skjsId);
//        System.out.println(skjscx);

        /**
         * 累计算税数据下载
         */
        String ljsssjxzId = "20190905044404-9324-240165228518572032";
//        String ljsssjxz = ServyouService.ljsssjxz(acceptId);
//        System.out.println(ljsssjxz);
        // 0251 在计算所得月份[201907]的税款时，未下载到[201906]的申报信息，请先确保[201906]已经申报，再重新发起所得月份[201907]的税款计算
        /**
         * {"code":"0000","msg":"","data":{"accept_id":"20190820213623-9324-234621781443346432","rylb":[{"zfzjzc":0,"ljjmse":0,"jnzf":0,"znjyzc":0,"mssd":0,"jbylaobxf":0,"jwzf":0,"ybtse":0,"ljsre":10000,"sylrzc":0,"zxfjkchj":0,"jbylbxf":0,"syylbx":0,"ljmssr":0,"bz":"","sl":3,"zykcjze":0,"errorinfo":"","zfgjj":0,"qt":0,"jmse":0,"zxkchj":900,"sygs":"","syjkbx":0,"ljynssde":0,"sre":0,"sybxf":0,"jxjyzc":0,"qtckhj":0,"ljzykcdjze":0,"zfdklxzc":0,"ykjse":0,"sskcs":0,"ljykjse":0,"jnts":0,"sdxm":"0100","xm":"龙夷潜","zzlx":"居民身份证","ljyingkjse":0,"dbylzc":0,"zzhm":"653200200604090096","nj":0,"ljynse":0,"jcfy":40000,"jwts":0,"status":0},{"zfzjzc":0,"ljjmse":0,"jnzf":0,"znjyzc":0,"mssd":0,"jbylaobxf":0,"jwzf":0,"ybtse":0,"ljsre":10000,"sylrzc":0,"zxfjkchj":0,"jbylbxf":0,"syylbx":0,"ljmssr":0,"bz":"","sl":3,"zykcjze":0,"errorinfo":"","zfgjj":0,"qt":0,"jmse":0,"zxkchj":900,"sygs":"","syjkbx":0,"ljynssde":0,"sre":0,"sybxf":0,"jxjyzc":0,"qtckhj":0,"ljzykcdjze":0,"zfdklxzc":0,"ykjse":0,"sskcs":0,"ljykjse":0,"jnts":0,"sdxm":"0100","xm":"郑沙物","zzlx":"居民身份证","ljyingkjse":0,"dbylzc":0,"zzhm":"341722194207063177","nj":0,"ljynse":0,"jcfy":40000,"jwts":0,"status":0}]}}
         */
//        String ljsssjxzcx = ServyouService.ljsssjxzcx(ljsssjxzId);
//        System.out.println(ljsssjxzcx);

        /**
         * 申报
         */
//        Map<String, Object> gssbData = TaxationDeclare.getGssbData(acceptId);
//        System.out.println(JSON.toJSONString(gssbData));

        String gssbId = "20190821103206-9301-234816995747430400";
//        String gssb = ServyouService.gssb(gssbData);
//        System.out.println(gssb);
//        String gssbztcx = ServyouService.gssbztcx(gssbId);
//        System.out.println(gssbztcx);
//        String gssbfk = ServyouService.gssbfk(gssbId);
//        System.out.println(gssbfk);
//        String gssbfkztcx = ServyouService.gssbfkztcx(gssbId);
//        System.out.println(gssbfkztcx);

        /**
         * 申报核验
         */
        String gssbMxcxId = "20190821103118-9325-234816794299203584";
//        String gssbMxcx = ServyouService.gssbMxcx();
//        System.out.println(gssbMxcx);
        /**
         * {"code":"0000","msg":"","data":{"fjmsd":{"lwbclb":[],"wjsyjjlb":[],"wjgzxjlb":[]},"flsd":{"qtcczrlb":[],"qtcczllb":[],"orsdlb":[],"lxgxhllb":[]},"accept_id":"20190820214907-9325-234624984394235904","ykyj":{"jcldhtlb":[],"grgqjllb":[],"qnycxjjlb":[],"lwbclb":[],"njlqlb":[],"txqsyflb":[],"zcgzxjlb":[{"zfzjzc":0.00,"ljjmse":0.00,"znjyzc":0.00,"mssd":0.00,"jbylaobxf":500.00,"ybtse":0.00,"ljsre":0.00,"sylrzc":0.00,"zxfjkchj":0.00,"jbylbxf":200.00,"kcxmhj":0.00,"syylbx":0.00,"ljmssr":0.00,"bz":"","sl":0.00,"zykcjze":0.00,"zfgjj":200.00,"qt":0.00,"jmse":0.00,"zxkchj":0.00,"syjkbx":0.00,"ljynssde":0.00,"sre":10000.00,"sybxf":0.00,"jxjyzc":0.00,"qtckhj":0.00,"zfdklxzc":0.00,"sskcs":0.00,"ykjse":0.00,"xm":"龙夷潜","zzlx":"居民身份证","dbylzc":0.00,"ljyingkjse":0.00,"zzhm":"653200200604090096","nj":0.00,"ljynse":0.00,"jcfy":0.00},{"zfzjzc":0.00,"ljjmse":0.00,"znjyzc":0.00,"mssd":0.00,"jbylaobxf":500.00,"ybtse":0.00,"ljsre":0.00,"sylrzc":0.00,"zxfjkchj":0.00,"jbylbxf":200.00,"kcxmhj":0.00,"syylbx":0.00,"ljmssr":0.00,"bz":"","sl":0.00,"zykcjze":0.00,"zfgjj":200.00,"qt":0.00,"jmse":0.00,"zxkchj":0.00,"syjkbx":0.00,"ljynssde":0.00,"sre":10000.00,"sybxf":0.00,"jxjyzc":0.00,"qtckhj":0.00,"zfdklxzc":0.00,"sskcs":0.00,"ykjse":0.00,"xm":"郑沙物","zzlx":"居民身份证","dbylzc":0.00,"ljyingkjse":0.00,"zzhm":"341722194207063177","nj":0.00,"ljynse":0.00,"jcfy":0.00}],"gcsdlb":[]}}}
         */
//        String mxcxStr = ServyouService.gssbMxcxCx(gssbMxcxId);
//        System.out.println(mxcxStr);


        /**
         * 申报作废
         */
        String gszfId = "20190821102724-9302-234815815730331648";
//        String gszf = ServyouService.gszf(new String[]{"SB0701"});
//        System.out.println(gszf);
//        String gszfztcx = ServyouService.gszfztcx(gszfId);
//        System.out.println(gszfztcx);
//        String gszffk = ServyouService.gszffk(gszfId);
//        System.out.println(gszffk);
//        String gszffkztcx = ServyouService.gszffkztcx(gszfId);
//        System.out.println(gszffkztcx);

        /**
         * 三方协议获取
         */
        String xyhqId = "20190904210641-9321-240050124602998784";
//        String xyhq = ServyouService.xyhq();
//        System.out.println(xyhq);
        /**
         * data :{"data":[{"xzqhszdm":"440606","khyhhh":"123123456789","skssswjgdm":"24403030002","sfxydjuuid":"12345678912345678912345678987821","pkbz":"1","sfyx":"是","skssswjgmc":"","sfxyyztgrq":"20151213","sfxyh":"741852965","qsyhhh":"123456789123","yhyywddm":"102010900291","sjtbsj":"20150612 15:30:30","yhhbdm":"102","gxsj":"2019-08-21","djxh":"10911000000000000822","yhhbmc":"","jkzhmc":"银行账户11","sfxyztdm":"02","jkzh":"52205220123456789","sfxyyzxx":"????????"},{"xzqhszdm":"440606","khyhhh":"123123456789","skssswjgdm":"23100000000","sfxydjuuid":"12345678912345678912345678987823","pkbz":"1","sfyx":"是","skssswjgmc":"","sfxyyztgrq":"20151212","sfxyh":"123456789","qsyhhh":"123456789123","yhyywddm":"102010900291","sjtbsj":"20150612 15:30:30","yhhbdm":"102","gxsj":"2019-08-21","djxh":"10911000000000000822","yhhbmc":"","jkzhmc":"银行账户33","sfxyztdm":"02","jkzh":"522052","sfxyyzxx":"????????"}],"accept_id":"20190821102555-9321-234815438616264704"}
         */
//        String xyhqctx = ServyouService.xyhqctx(xyhqId);
//        System.out.println(xyhqctx);

        /**
         * 缴款
         *
         * 依赖三方数据
         */


    }

}
